# Tanım: D-Bus'ın C# için Glib uygulaması
# URL: https://github.com/mono/dbus-sharp/
# Paketçi: halityilmaz1982
# Gerekler: mono
# Grup: 

isim=dbus-sharp
surum=0.8.1
devir=2
kaynak=(
	https://github.com/mono/$isim/releases/download/v$surum/$isim-$surum.tar.gz
	https://github.com/Microsoft/msbuild/releases/download/mono-hosted-msbuild-v0.03/mono_msbuild_d25dd923839404bd64cc63f420e75acf96fc75c4.zip)

derle() {
	cd $isim-$surum
	sed -e 's/gmcs/mcs/g' -i configure
	local msbuild="$SRC/msbuild/MSBuild.exe"

	./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make 
	mono $msbuild src/dbus-sharp.csproj /p:WarningLevel=0;Configuration=Release
  	
	make DESTDIR=$PKG install
	install -Dm644 COPYING "PKG/usr/share/licenses/$isim/COPYING"
}
